home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / bluep.swf / scripts / frame_25 / DoAction.as
Text File  |  2013-04-24  |  54KB  |  1,938 lines

  1. function setup()
  2. {
  3.    if(_global.musicOn == true)
  4.    {
  5.       _global.myMusicPlayer.SetTrack("bluep_game");
  6.       _global.myMusicPlayer.SetMaxVolume(100);
  7.       _global.myMusicPlayer.PlayWithCrossFade(0.5);
  8.    }
  9.    cacheMovieClips();
  10.    maxSpeed = 6;
  11.    friction = 0.08;
  12.    numSensitivity = 0.6;
  13.    avatarLife = 1;
  14.    secondBulletCounter = 0;
  15.    numBulletDepth = 100000;
  16.    numBulletDepth2 = 200000;
  17.    numEffectDepth = 500000;
  18.    numEnemyDepth = 300000;
  19.    powerDepth = 400000;
  20.    counter = 0;
  21.    minCounter = 200;
  22.    maxCounter = 400;
  23.    powerUpType = 1;
  24.    nextTween = 0;
  25.    isTouching = false;
  26.    isHeld = false;
  27.    parallel = false;
  28.    spread = false;
  29.    gun2 = false;
  30.    gun3 = false;
  31.    arrBullets = new Array();
  32.    arrEnemy = new Array();
  33.    lasersLeftPosX = _root.lazer._x - 600;
  34.    lasersLeftPosY = _root.lazer._y;
  35.    lasersRightPosX = _root.lazer._x;
  36.    lasersRightPosY = _root.lazer._y;
  37.    lasersTopPosX = _root.lazer2._x;
  38.    lasersTopPosY = _root.lazer2._y;
  39.    lasersBottomPosX = _root.lazer2._x;
  40.    lasersBottomPosY = _root.lazer2._y + 600;
  41.    _root.timer._visible = false;
  42.    startTime = getTimer();
  43.    myTime = getTimer();
  44.    stageState = 0;
  45.    verIndicator = 1;
  46.    horIndicator = 1;
  47.    newSecHitTest = 10;
  48.    secIncrem = 10;
  49.    prevScore = 0;
  50.    enemySetBase = _global.FPSforTweenClass * 5;
  51.    enemyIncrem = 0;
  52.    instDone = false;
  53.    startUpPeriod = true;
  54.    dyingProcess = false;
  55.    killAll = false;
  56.    enemyAppearSec = 1;
  57.    playerLives = 5;
  58.    _root.lives.lives_txt.text = "Lives: " + playerLives;
  59.    _global.jumping = false;
  60.    _global.jumping2 = false;
  61.    _global.mouseTest = false;
  62.    _global.shooting = false;
  63.    _global.oneTime = false;
  64.    _global.justGotHit = false;
  65.    _global.alreadyOut = true;
  66.    _global.cheat = false;
  67.    _global.up = _global.hotKey_up;
  68.    _global.down = _global.hotKey_down;
  69.    _global.rightward = _global.hotKey_right;
  70.    _global.leftward = _global.hotKey_left;
  71.    _global.jump = _global.hotKey_jump;
  72.    _root.powerUpMc.gotoAndPlay("instructions");
  73. }
  74. function run()
  75. {
  76.    _global.myMusicPlayer.RunPlayer();
  77.    myTime = getTimer();
  78.    circleTrapSnap();
  79.    enemyRandomness();
  80.    mouseCurserAdjust();
  81.    keepKeyboardInside();
  82.    keyboardListener();
  83.    moveKeyboardPointer();
  84.    rotateAvatar();
  85.    gunSizeAdjust();
  86.    shoootCheck();
  87.    lazerHitTest();
  88.    controlGameFlow();
  89.    getTimeString(myTime);
  90.    GetAndDisplayScore();
  91.    generatePowerUp();
  92.    powerUpHitTest();
  93.    controlInstruction();
  94. }
  95. function adjustLives()
  96. {
  97.    playerLives--;
  98.    _root.lives.lives_txt.text = "Lives: " + playerLives;
  99.    if(playerLives <= 0)
  100.    {
  101.       _root.pointer.gotoAndPlay("dead");
  102.    }
  103.    else
  104.    {
  105.       _root.pointer.gotoAndPlay("hit");
  106.    }
  107. }
  108. function RunTimer()
  109. {
  110.    if(_root.timer._visible == true)
  111.    {
  112.       var _loc2_ = Math.round((effectTimer - getTimer()) / (effectLength * 1000) * 100);
  113.       if(_loc2_ <= 0)
  114.       {
  115.          HideTimer();
  116.       }
  117.    }
  118. }
  119. function HideTimer()
  120. {
  121.    _root.timer._visible = false;
  122. }
  123. function StartTimer()
  124. {
  125.    _root.timer._visible = true;
  126.    effectTimer = getTimer() + effectLength * 1000;
  127. }
  128. function getTimeString(myTime)
  129. {
  130.    var _loc4_ = Math.floor(myTime / 1000);
  131.    if(_loc4_ > 60)
  132.    {
  133.       var _loc1_ = myTime / 1000;
  134.       var _loc3_ = _loc1_ / 60;
  135.       if(_loc1_ > 59)
  136.       {
  137.          _loc1_ -= Math.floor(_loc3_) * 60;
  138.       }
  139.       var _loc5_ = undefined;
  140.       var _loc2_ = undefined;
  141.       if(_loc3_ < 10)
  142.       {
  143.          _loc2_ = "0" + Math.floor(_loc3_);
  144.       }
  145.       else
  146.       {
  147.          _loc2_ = "" + Math.floor(_loc3_);
  148.       }
  149.       if(_loc1_ < 10)
  150.       {
  151.          _loc5_ = _loc2_ + ":0" + Math.floor(_loc1_);
  152.       }
  153.       else if(_loc1_ == 0)
  154.       {
  155.          _loc5_ = _loc2_ + ":00";
  156.       }
  157.       else
  158.       {
  159.          _loc5_ = _loc2_ + ":" + Math.floor(_loc1_);
  160.       }
  161.       return _loc5_;
  162.    }
  163.    if(_loc4_ < 10)
  164.    {
  165.       _loc5_ = "00:0" + Math.floor(_loc4_);
  166.    }
  167.    else
  168.    {
  169.       _loc5_ = "00:" + Math.floor(_loc4_);
  170.    }
  171.    return _loc5_;
  172. }
  173. function GetAndDisplayScore()
  174. {
  175.    var _loc4_ = getTimeString(myTime - startTime);
  176.    var _loc3_ = Math.round((myTime - startTime - 4000) / 1000 * 75);
  177.    if(prevScore + 80 <= _loc3_)
  178.    {
  179.       _global.cheat = true;
  180.    }
  181.    if(_loc3_ < 0)
  182.    {
  183.       _loc3_ = 0;
  184.    }
  185.    _root.timerr.time_txt.text = "Time: " + _loc4_;
  186.    _root.score.score_txt.text = "Score: " + _loc3_;
  187.    _global.userScore = _loc3_;
  188.    prevScore = _loc3_;
  189. }
  190. function lazerHitTest()
  191. {
  192.    if(_root.lazer.hitTest(_root.pointer) || _root.lazer2.hitTest(_root.pointer) || _root.lazer3.hitTest(_root.pointer) || _root.lazer4.hitTest(_root.pointer) || _root.lazer5.hitTest(_root.pointer) || _root.lazer6.hitTest(_root.pointer) || _root.lazer7.hitTest(_root.pointer) || _root.lazer8.hitTest(_root.pointer) || _root.lazer9.hitTest(_root.pointer) || _root.lazer10.hitTest(_root.pointer) || _root.lazer11.hitTest(_root.pointer) || _root.lazer12.hitTest(_root.pointer) || _root.lazer13.hitTest(_root.pointer) || _root.lazer14.hitTest(_root.pointer) || _root.lazer15.hitTest(_root.pointer) || _root.lazer16.hitTest(_root.pointer) || _root.lazer17.hitTest(_root.pointer) || _root.lazer18.hitTest(_root.pointer) || _root.lazer19.hitTest(_root.pointer) || _root.lazer20.hitTest(_root.pointer))
  193.    {
  194.       if(!isTouching && !_global.jumping2 && !dyingProcess && !_global.justGotHit && !_global.shieldOn)
  195.       {
  196.          adjustLives();
  197.          cleanupBullets();
  198.          isTouching = true;
  199.       }
  200.    }
  201.    else if(isTouching)
  202.    {
  203.       isTouching = false;
  204.    }
  205. }
  206. function moveKeyboardPointer()
  207. {
  208.    _root.pointer._x += vecMomentum._x;
  209.    _root.pointer._y += vecMomentum._y;
  210. }
  211. function shoootCheck()
  212. {
  213.    _root.onMouseDown = function()
  214.    {
  215.       if(!startUpPeriod && !_global.justGotHit && !dyingProcess)
  216.       {
  217.          _global.SoundManager.PlaySound("dink");
  218.          shootGun();
  219.       }
  220.    };
  221. }
  222. function keyboardListener()
  223. {
  224.    if(!isHeld && !_global.justGotHit)
  225.    {
  226.       if(Key.isDown(_global.jump))
  227.       {
  228.          isHeld = true;
  229.          avatarJump();
  230.       }
  231.       if(!Key.isDown(_global.jump))
  232.       {
  233.          isHeld = false;
  234.       }
  235.    }
  236.    if(!Key.isDown(_global.jump))
  237.    {
  238.       isHeld = false;
  239.    }
  240.    if(Key.isDown(_global.up))
  241.    {
  242.       vecMomentum._y -= numSensitivity;
  243.       if(vecMomentum._y < -1 * maxSpeed)
  244.       {
  245.          vecMomentum._y = -1 * maxSpeed;
  246.       }
  247.    }
  248.    else if(Key.isDown(_global.down))
  249.    {
  250.       vecMomentum._y += numSensitivity;
  251.       if(vecMomentum._y > maxSpeed)
  252.       {
  253.          vecMomentum._y = maxSpeed;
  254.       }
  255.    }
  256.    else if(vecMomentum._y > 0)
  257.    {
  258.       vecMomentum._y -= friction;
  259.       if(Math.abs(vecMomentum._y) < 0.5)
  260.       {
  261.          vecMomentum._y = 0;
  262.       }
  263.    }
  264.    else
  265.    {
  266.       vecMomentum._y += friction;
  267.       if(Math.abs(vecMomentum._y) < 0.5)
  268.       {
  269.          vecMomentum._y = 0;
  270.       }
  271.    }
  272.    if(Key.isDown(_global.leftward))
  273.    {
  274.       vecMomentum._x -= numSensitivity;
  275.       if(vecMomentum._x < -1 * maxSpeed)
  276.       {
  277.          vecMomentum._x = -1 * maxSpeed;
  278.       }
  279.    }
  280.    else if(Key.isDown(_global.rightward))
  281.    {
  282.       vecMomentum._x += numSensitivity;
  283.       if(vecMomentum._x > maxSpeed)
  284.       {
  285.          vecMomentum._x = maxSpeed;
  286.       }
  287.    }
  288.    else if(vecMomentum._x > 0)
  289.    {
  290.       vecMomentum._x -= friction;
  291.       if(Math.abs(vecMomentum._x) < 0.5)
  292.       {
  293.          vecMomentum._x = 0;
  294.       }
  295.    }
  296.    else
  297.    {
  298.       vecMomentum._x += friction;
  299.       if(Math.abs(vecMomentum._x) < 0.5)
  300.       {
  301.          vecMomentum._x = 0;
  302.       }
  303.    }
  304. }
  305. function avatarJump()
  306. {
  307.    if(!_global.jumping)
  308.    {
  309.       if(!dyingProcess)
  310.       {
  311.          _global.SoundManager.PlaySound("hollow_push");
  312.          _root.pointer.gotoAndPlay("jump");
  313.       }
  314.    }
  315. }
  316. function gunSizeAdjust()
  317. {
  318.    if(_global.jumping)
  319.    {
  320.       _root.pointer.gun._xscale = 140;
  321.       _root.pointer.gun._yscale = 140;
  322.       _root.pointer.gun._x += 0.2;
  323.       if(_root.pointer.gun._x >= 21)
  324.       {
  325.          _global.jumping = false;
  326.          _root.pointer.gun._x = 19;
  327.       }
  328.    }
  329.    else if(_root.pointer.gun._xscale >= 100)
  330.    {
  331.       _root.pointer.gun._xscale -= 15;
  332.       _root.pointer.gun._yscale -= 15;
  333.       _root.pointer.gun._x = 19;
  334.    }
  335. }
  336. function keepKeyboardInside()
  337. {
  338.    if(_root.pointer._x <= _root.arena._x)
  339.    {
  340.       _root.pointer._x = _root.arena._x;
  341.       if(_root.pointer._y <= _root.arena._y)
  342.       {
  343.          _root.pointer._y = _root.arena._y;
  344.       }
  345.       else if(_root.pointer._y >= _root.arena._height + _root.arena._y)
  346.       {
  347.          _root.pointer._y = _root.arena._height + _root.arena._y;
  348.       }
  349.    }
  350.    else if(_root.pointer._x >= _root.arena._width + _root.arena._x)
  351.    {
  352.       _root.pointer._x = _root.arena._width + _root.arena._x;
  353.       if(_root.pointer._y <= _root.arena._y)
  354.       {
  355.          _root.pointer._y = _root.arena._y;
  356.       }
  357.       else if(_root.pointer._y >= _root.arena._height + _root.arena._y)
  358.       {
  359.          _root.pointer._y = _root.arena._height + _root.arena._y;
  360.       }
  361.    }
  362.    else if(_root.pointer._y <= _root.arena._y)
  363.    {
  364.       _root.pointer._y = _root.arena._y;
  365.    }
  366.    else if(_root.pointer._y >= _root.arena._height + _root.arena._y)
  367.    {
  368.       _root.pointer._y = _root.arena._height + _root.arena._y;
  369.    }
  370. }
  371. function rotateAvatar()
  372. {
  373.    var _loc2_ = new Vector();
  374.    _loc2_._x = _xmouse - _root.pointer._x;
  375.    _loc2_._y = _ymouse - _root.pointer._y;
  376.    var _loc3_ = Math.atan2(_loc2_._y,_loc2_._x);
  377.    var _loc4_ = 360 * _loc3_ / 6.283185307179586;
  378.    _root.pointer._rotation = _loc4_;
  379. }
  380. function moveNavi_reset(mc)
  381. {
  382.    var _loc5_ = 51.7;
  383.    var _loc6_ = 460.2;
  384.    var _loc3_ = 0.75;
  385.    var _loc4_ = _global.FPSforTweenClass;
  386.    var _loc7_ = mc._x;
  387.    var _loc8_ = mc._y;
  388.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.Strong.easeOut,_loc7_,_loc5_,_loc3_,true);
  389.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.Strong.easeOut,_loc8_,_loc6_,_loc3_,true);
  390.    myTweening.FPS = _loc4_;
  391.    myTweening.FPS = _loc4_;
  392.    myTweening.onMotionFinished = function()
  393.    {
  394.    };
  395. }
  396. function moveNavi_menu(mc)
  397. {
  398.    var _loc5_ = 52.7;
  399.    var _loc6_ = 460.2;
  400.    var _loc3_ = 0.75;
  401.    var _loc4_ = _global.FPSforTweenClass;
  402.    var _loc7_ = mc._x;
  403.    var _loc8_ = mc._y;
  404.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.Strong.easeOut,_loc7_,_loc5_,_loc3_,true);
  405.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.Strong.easeOut,_loc8_,_loc6_,_loc3_,true);
  406.    myTweening.FPS = _loc4_;
  407.    myTweening.FPS = _loc4_;
  408.    myTweening.onMotionFinished = function()
  409.    {
  410.    };
  411. }
  412. function moveNavi_score(mc)
  413. {
  414.    var _loc5_ = 130.7;
  415.    var _loc6_ = 460.2;
  416.    var _loc3_ = 0.75;
  417.    var _loc4_ = _global.FPSforTweenClass;
  418.    var _loc7_ = mc._x;
  419.    var _loc8_ = mc._y;
  420.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.Strong.easeOut,_loc7_,_loc5_,_loc3_,true);
  421.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.Strong.easeOut,_loc8_,_loc6_,_loc3_,true);
  422.    myTweening.FPS = _loc4_;
  423.    myTweening.FPS = _loc4_;
  424.    myTweening.onMotionFinished = function()
  425.    {
  426.    };
  427. }
  428. function moveNavi_back(mc)
  429. {
  430.    var _loc5_ = -100;
  431.    var _loc6_ = 460.2;
  432.    var _loc3_ = 0.75;
  433.    var _loc4_ = _global.FPSforTweenClass;
  434.    var _loc7_ = mc._x;
  435.    var _loc8_ = mc._y;
  436.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.Strong.easeOut,_loc7_,_loc5_,_loc3_,true);
  437.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.Strong.easeOut,_loc8_,_loc6_,_loc3_,true);
  438.    myTweening.FPS = _loc4_;
  439.    myTweening.FPS = _loc4_;
  440.    myTweening.onMotionFinished = function()
  441.    {
  442.    };
  443. }
  444. function mouseCurserAdjust()
  445. {
  446.    _root.crosshair._x = _xmouse;
  447.    _root.crosshair._y = _ymouse;
  448. }
  449. function shootGun()
  450. {
  451.    var thisRef = this;
  452.    var _loc6_ = "avatarBullet_" + numBulletDepth;
  453.    var _loc3_ = new Vector();
  454.    _loc3_._x = Math.cos(3.141592653589793 * _root.pointer._rotation / 180) * 10;
  455.    _loc3_._y = Math.sin(3.141592653589793 * _root.pointer._rotation / 180) * 10;
  456.    var _loc10_ = {x:_root.pointer.emitter._x,y:_root.pointer.emitter._y};
  457.    _root.pointer.gun.localToGlobal(_loc10_);
  458.    _root.attachMovie("bullet_1",_loc6_,numBulletDepth);
  459.    _root[_loc6_]._x = _loc10_.x;
  460.    _root[_loc6_]._y = _loc10_.y;
  461.    _root[_loc6_].SetMovement(_loc3_._x,_loc3_._y);
  462.    _root[_loc6_]._enemy = false;
  463.    numBulletDepth++;
  464.    if(numBulletDepth >= 200000)
  465.    {
  466.       numBulletDepth = 100000;
  467.    }
  468.    arrBullets.push(_loc6_);
  469.    _root[_loc6_].removeCallback = function(myName)
  470.    {
  471.       thisRef.removeBullet(myName);
  472.    };
  473.    if(parallel)
  474.    {
  475.       var _loc5_ = "avatarBullet_" + numBulletDepth;
  476.       var _loc9_ = {x:_root.pointer.emitter2._x,y:_root.pointer.emitter2._y};
  477.       _root.pointer.gun.localToGlobal(_loc9_);
  478.       _root.attachMovie("bullet_1",_loc5_,numBulletDepth);
  479.       _root[_loc5_]._x = _loc9_.x;
  480.       _root[_loc5_]._y = _loc9_.y;
  481.       _root[_loc5_].SetMovement(_loc3_._x,_loc3_._y);
  482.       _root[_loc5_]._enemy = false;
  483.       numBulletDepth++;
  484.       if(numBulletDepth >= 200000)
  485.       {
  486.          numBulletDepth = 100000;
  487.       }
  488.       arrBullets.push(_loc5_);
  489.       _root[_loc5_].removeCallback = function(myName)
  490.       {
  491.          thisRef.removeBullet(myName);
  492.       };
  493.       var _loc4_ = "avatarBullet_" + numBulletDepth;
  494.       var _loc11_ = {x:_root.pointer.emitter3._x,y:_root.pointer.emitter3._y};
  495.       _root.pointer.gun.localToGlobal(_loc11_);
  496.       _root.attachMovie("bullet_1",_loc4_,numBulletDepth);
  497.       _root[_loc4_]._x = _loc11_.x;
  498.       _root[_loc4_]._y = _loc11_.y;
  499.       _root[_loc4_].SetMovement(_loc3_._x,_loc3_._y);
  500.       _root[_loc4_]._enemy = false;
  501.       numBulletDepth++;
  502.       if(numBulletDepth >= 200000)
  503.       {
  504.          numBulletDepth = 100000;
  505.       }
  506.       arrBullets.push(_loc4_);
  507.       _root[_loc4_].removeCallback = function(myName)
  508.       {
  509.          thisRef.removeBullet(myName);
  510.       };
  511.    }
  512.    if(spread)
  513.    {
  514.       var _loc7_ = new Vector();
  515.       var _loc13_ = _root.pointer._rotation - 10;
  516.       _loc7_._x = Math.cos(3.141592653589793 * _loc13_ / 180) * 10;
  517.       _loc7_._y = Math.sin(3.141592653589793 * _loc13_ / 180) * 10;
  518.       _loc5_ = "avatarBullet_" + numBulletDepth;
  519.       _loc9_ = {x:_root.pointer.emitter2._x,y:_root.pointer.emitter2._y};
  520.       _root.pointer.gun.localToGlobal(_loc9_);
  521.       _root.attachMovie("bullet_1",_loc5_,numBulletDepth);
  522.       _root[_loc5_]._x = _loc9_.x;
  523.       _root[_loc5_]._y = _loc9_.y;
  524.       _root[_loc5_].SetMovement(_loc7_._x,_loc7_._y);
  525.       _root[_loc5_]._enemy = false;
  526.       numBulletDepth++;
  527.       if(numBulletDepth >= 200000)
  528.       {
  529.          numBulletDepth = 100000;
  530.       }
  531.       arrBullets.push(_loc5_);
  532.       _root[_loc5_].removeCallback = function(myName)
  533.       {
  534.          thisRef.removeBullet(myName);
  535.       };
  536.       var _loc8_ = new Vector();
  537.       var _loc12_ = _root.pointer._rotation + 10;
  538.       _loc8_._x = Math.cos(3.141592653589793 * _loc12_ / 180) * 10;
  539.       _loc8_._y = Math.sin(3.141592653589793 * _loc12_ / 180) * 10;
  540.       _loc4_ = "avatarBullet_" + numBulletDepth;
  541.       _loc11_ = {x:_root.pointer.emitter3._x,y:_root.pointer.emitter3._y};
  542.       _root.pointer.gun.localToGlobal(_loc11_);
  543.       _root.attachMovie("bullet_1",_loc4_,numBulletDepth);
  544.       _root[_loc4_]._x = _loc11_.x;
  545.       _root[_loc4_]._y = _loc11_.y;
  546.       _root[_loc4_].SetMovement(_loc8_._x,_loc8_._y);
  547.       _root[_loc4_]._enemy = false;
  548.       numBulletDepth++;
  549.       if(numBulletDepth >= 200000)
  550.       {
  551.          numBulletDepth = 100000;
  552.       }
  553.       arrBullets.push(_loc4_);
  554.       _root[_loc4_].removeCallback = function(myName)
  555.       {
  556.          thisRef.removeBullet(myName);
  557.       };
  558.    }
  559. }
  560. function shootEnemyGun(vecDirX, vecDirY, ePosX, ePosY)
  561. {
  562.    var thisRef = this;
  563.    var _loc4_ = "enemyBullet_" + numBulletDepth2;
  564.    var _loc5_ = {x:ePosX,y:ePosY};
  565.    _root[_loc4_].localToGlobal(_loc5_);
  566.    _root.attachMovie("bullet_2",_loc4_,numBulletDepth2);
  567.    _root[_loc4_]._x = _loc5_.x;
  568.    _root[_loc4_]._y = _loc5_.y;
  569.    _root[_loc4_].SetMovement(vecDirX,vecDirY);
  570.    _root[_loc4_]._enemy = true;
  571.    numBulletDepth2++;
  572.    if(numBulletDepth2 >= 300000)
  573.    {
  574.       numBulletDepth2 = 200000;
  575.    }
  576.    arrBullets.push(_loc4_);
  577.    _global.SoundManager.PlaySound("blip_1");
  578.    _root[_loc4_].removeCallback = function(myName)
  579.    {
  580.       thisRef.removeBullet(myName);
  581.    };
  582. }
  583. function removeBullet(strName)
  584. {
  585.    var _loc1_ = 0;
  586.    while(_loc1_ < arrBullets.length)
  587.    {
  588.       if(strName == arrBullets[_loc1_])
  589.       {
  590.          arrBullets.splice(_loc1_,1);
  591.          break;
  592.       }
  593.       _loc1_ = _loc1_ + 1;
  594.    }
  595. }
  596. function cleanupBullets()
  597. {
  598.    var _loc2_ = 0;
  599.    while(_loc2_ < arrBullets.length)
  600.    {
  601.       _root[arrBullets[_loc2_]].removeMovieClip();
  602.       _loc2_ = _loc2_ + 1;
  603.    }
  604.    delete arrBullets;
  605.    arrBullets = new Array();
  606. }
  607. function moveLazerLeft(whichLazer)
  608. {
  609.    _root[whichLazer]._x = lasersRightX;
  610.    _root[whichLazer]._y = lasersRightY;
  611.    moveIt(_root[whichLazer],lasersLeftPosX,lasersLeftPosY,3);
  612. }
  613. function moveLazerDown(whichLazer)
  614. {
  615.    _root[whichLazer]._x = lasersTopPosX;
  616.    _root[whichLazer]._y = lasersTopPosY;
  617.    moveIt(_root[whichLazer],lasersBottomPosX,lasersBottomPosY,4);
  618. }
  619. function moveLazerRight(whichLazer)
  620. {
  621.    _root[whichLazer]._x = lasersLeftPosX;
  622.    _root[whichLazer]._y = lasersLeftPosY;
  623.    moveIt(_root[whichLazer],lasersRightPosX,lasersRightPosY,3);
  624. }
  625. function moveLazerUp(whichLazer)
  626. {
  627.    _root[whichLazer]._x = lasersBottomPosX;
  628.    _root[whichLazer]._y = lasersBottomPosY;
  629.    moveIt(_root[whichLazer],lasersTopPosX,lasersTopPosY,3);
  630. }
  631. function controlInstruction()
  632. {
  633.    if(!instDone)
  634.    {
  635.       _root.powerUpMc.inst_up_txt.text = "Up: " + outputValue2(_global.up);
  636.       _root.powerUpMc.inst_down_txt.text = "Down: " + outputValue2(_global.down);
  637.       _root.powerUpMc.inst_left_txt.text = "Left: " + outputValue2(_global.leftward);
  638.       _root.powerUpMc.inst_right_txt.text = "Right: " + outputValue2(_global.rightward);
  639.       var _loc3_ = Math.round(myTime - startTime) / 1000;
  640.       if(_loc3_ >= 5)
  641.       {
  642.          instDone = true;
  643.          _root.powerUpMc.gotoAndPlay("instructionsOut");
  644.       }
  645.    }
  646.    _root.powerUpMc.jumpText_txt.text = outputValue2(_global.jump);
  647. }
  648. function outputValue2(keyCode)
  649. {
  650.    var _loc1_ = "";
  651.    switch(keyCode)
  652.    {
  653.       case 8:
  654.          _loc1_ = "BACKSPACE";
  655.          break;
  656.       case 20:
  657.          _loc1_ = "CAPSLOCK";
  658.          break;
  659.       case 17:
  660.          _loc1_ = "CONTROL";
  661.          break;
  662.       case 46:
  663.          _loc1_ = "DELETE";
  664.          break;
  665.       case 40:
  666.          _loc1_ = "DOWN";
  667.          break;
  668.       case 35:
  669.          _loc1_ = "END";
  670.          break;
  671.       case 13:
  672.          _loc1_ = "ENTER";
  673.          break;
  674.       case 27:
  675.          _loc1_ = "ESCAPE";
  676.          break;
  677.       case 36:
  678.          _loc1_ = "HOME";
  679.          break;
  680.       case 45:
  681.          _loc1_ = "INSERT";
  682.          break;
  683.       case 37:
  684.          _loc1_ = "LEFT";
  685.          break;
  686.       case 34:
  687.          _loc1_ = "PGDN";
  688.          break;
  689.       case 33:
  690.          _loc1_ = "PGUP";
  691.          break;
  692.       case 39:
  693.          _loc1_ = "RIGHT";
  694.          break;
  695.       case 16:
  696.          _loc1_ = "SHIFT";
  697.          break;
  698.       case 32:
  699.          _loc1_ = "SPACE";
  700.          break;
  701.       case 9:
  702.          _loc1_ = "TAB";
  703.          break;
  704.       case 38:
  705.          _loc1_ = "UP";
  706.          break;
  707.       case 186:
  708.          _loc1_ = ";";
  709.          break;
  710.       case 187:
  711.          _loc1_ = "=";
  712.          break;
  713.       case 189:
  714.          _loc1_ = "-";
  715.          break;
  716.       case 191:
  717.          _loc1_ = "/";
  718.          break;
  719.       case 192:
  720.          _loc1_ = "`";
  721.          break;
  722.       case 219:
  723.          _loc1_ = "[";
  724.          break;
  725.       case 220:
  726.          _loc1_ = "\\";
  727.          break;
  728.       case 221:
  729.          _loc1_ = "]";
  730.          break;
  731.       case 222:
  732.          _loc1_ = "\'";
  733.          break;
  734.       case 188:
  735.          _loc1_ = ",";
  736.          break;
  737.       case 190:
  738.          _loc1_ = ".";
  739.          break;
  740.       case 96:
  741.          _loc1_ = "NUMPAD 0";
  742.          break;
  743.       case 97:
  744.          _loc1_ = "NUMPAD 1";
  745.          break;
  746.       case 98:
  747.          _loc1_ = "NUMPAD 2";
  748.          break;
  749.       case 99:
  750.          _loc1_ = "NUMPAD 3";
  751.          break;
  752.       case 100:
  753.          _loc1_ = "NUMPAD 4";
  754.          break;
  755.       case 101:
  756.          _loc1_ = "NUMPAD 5";
  757.          break;
  758.       case 102:
  759.          _loc1_ = "NUMPAD 6";
  760.          break;
  761.       case 103:
  762.          _loc1_ = "NUMPAD 7";
  763.          break;
  764.       case 104:
  765.          _loc1_ = "NUMPAD 8";
  766.          break;
  767.       case 105:
  768.          _loc1_ = "NUMPAD 9";
  769.          break;
  770.       case 106:
  771.          _loc1_ = "MULTIPLY";
  772.          break;
  773.       case 107:
  774.          _loc1_ = "ADD";
  775.          break;
  776.       case 109:
  777.          _loc1_ = "SUBTRACT";
  778.          break;
  779.       case 110:
  780.          _loc1_ = "DECIMAL";
  781.          break;
  782.       case 111:
  783.          _loc1_ = "DIVIDE";
  784.          break;
  785.       default:
  786.          _loc1_ = chr(keyCode);
  787.          _loc1_.toUpperCase();
  788.    }
  789.    return _loc1_;
  790. }
  791. function controlGameFlow()
  792. {
  793.    var _loc3_ = Math.round(myTime - startTime) / 1000;
  794.    switch(stageState)
  795.    {
  796.       case 0:
  797.          if(_loc3_ >= newSecHitTest)
  798.          {
  799.             createRandomLazer();
  800.             newSecHitTest += secIncrem;
  801.          }
  802.          if(_loc3_ >= 30)
  803.          {
  804.             _global.alreadyOut = false;
  805.             secIncrem = 4;
  806.             enemySetBase = _global.FPSforTweenClass * 4;
  807.             stageState = 1;
  808.          }
  809.       case 1:
  810.          if(_loc3_ >= newSecHitTest)
  811.          {
  812.             createRandomLazer();
  813.             newSecHitTest += secIncrem;
  814.          }
  815.          if(_loc3_ >= 60)
  816.          {
  817.             secIncrem = 3;
  818.             stageState = 2;
  819.          }
  820.       case 2:
  821.          if(_loc3_ >= newSecHitTest)
  822.          {
  823.             createRandomLazer();
  824.             newSecHitTest += secIncrem;
  825.          }
  826.          if(_loc3_ >= 90)
  827.          {
  828.             _root.pointer.gun2.gotoAndStop("on");
  829.             _root.pointer.gun3.gotoAndStop("on");
  830.             gun2 = true;
  831.             gun3 = true;
  832.             spread = true;
  833.             parallel = false;
  834.             _root.powerUpMc.gotoAndPlay("flash5");
  835.             _global.SoundManager.PlaySound("bloop");
  836.             secIncrem = 2.5;
  837.             stageState = 3;
  838.             enemyAppearSec = 2;
  839.          }
  840.       case 3:
  841.          if(_loc3_ >= newSecHitTest)
  842.          {
  843.             createRandomLazer();
  844.             newSecHitTest += secIncrem;
  845.          }
  846.          if(_loc3_ >= 120)
  847.          {
  848.             secIncrem = 2;
  849.             stageState = 4;
  850.          }
  851.       case 4:
  852.          if(_loc3_ >= newSecHitTest)
  853.          {
  854.             createRandomLazer();
  855.             newSecHitTest += secIncrem;
  856.          }
  857.          if(_loc3_ >= 150)
  858.          {
  859.             secIncrem = 1.5;
  860.             stageState = 5;
  861.          }
  862.       case 5:
  863.          if(_loc3_ >= newSecHitTest)
  864.          {
  865.             createRandomLazer();
  866.             newSecHitTest += secIncrem;
  867.          }
  868.          if(_loc3_ >= 180)
  869.          {
  870.             _root.pointer.gun2.gotoAndStop("on");
  871.             _root.pointer.gun3.gotoAndStop("on");
  872.             gun2 = true;
  873.             gun3 = true;
  874.             spread = false;
  875.             parallel = true;
  876.             _root.powerUpMc.gotoAndPlay("flash4");
  877.             _global.SoundManager.PlaySound("bloop");
  878.             secIncrem = 1;
  879.             stageState = 6;
  880.          }
  881.       case 6:
  882.          if(_loc3_ >= newSecHitTest)
  883.          {
  884.             createRandomLazer();
  885.             newSecHitTest += secIncrem;
  886.          }
  887.          if(_loc3_ >= 210)
  888.          {
  889.             secIncrem = 0.9;
  890.             stageState = 7;
  891.          }
  892.       case 7:
  893.          if(_loc3_ >= newSecHitTest)
  894.          {
  895.             createRandomLazer();
  896.             newSecHitTest += secIncrem;
  897.          }
  898.          if(_loc3_ >= 240)
  899.          {
  900.             secIncrem = 0.8;
  901.             stageState = 8;
  902.          }
  903.       case 8:
  904.          if(_loc3_ >= newSecHitTest)
  905.          {
  906.             createRandomLazer();
  907.             newSecHitTest += secIncrem;
  908.          }
  909.          if(_loc3_ >= 270)
  910.          {
  911.             secIncrem = 0.7;
  912.             stageState = 9;
  913.          }
  914.       case 9:
  915.          if(_loc3_ >= newSecHitTest)
  916.          {
  917.             createRandomLazer();
  918.             newSecHitTest += secIncrem;
  919.          }
  920.          if(_loc3_ >= 300)
  921.          {
  922.             secIncrem = 0.6;
  923.             stageState = 10;
  924.          }
  925.       case 10:
  926.          if(_loc3_ >= newSecHitTest)
  927.          {
  928.             createRandomLazer();
  929.             newSecHitTest += secIncrem;
  930.          }
  931.          if(_loc3_ >= 330)
  932.          {
  933.             secIncrem = 0.5;
  934.             stageState = 11;
  935.          }
  936.       case 11:
  937.          if(_loc3_ >= newSecHitTest)
  938.          {
  939.             createRandomLazer();
  940.             newSecHitTest += secIncrem;
  941.          }
  942.          if(_loc3_ >= 360)
  943.          {
  944.             secIncrem = 0.4;
  945.             stageState = 12;
  946.          }
  947.       case 12:
  948.          if(_loc3_ >= newSecHitTest)
  949.          {
  950.             createRandomLazer();
  951.             newSecHitTest += secIncrem;
  952.             break;
  953.          }
  954.    }
  955. }
  956. function createRandomLazer()
  957. {
  958.    var _loc1_ = 1 + Math.floor(Math.random() * 4);
  959.    if(_loc1_ == 1)
  960.    {
  961.       moveLazerRight(getNextVerticalLazer());
  962.    }
  963.    else if(_loc1_ == 2)
  964.    {
  965.       moveLazerLeft(getNextVerticalLazer());
  966.    }
  967.    else if(_loc1_ == 3)
  968.    {
  969.       moveLazerUp(getNextHorizontalLazer());
  970.    }
  971.    else if(_loc1_ == 4)
  972.    {
  973.       moveLazerDown(getNextHorizontalLazer());
  974.    }
  975. }
  976. function getNextHorizontalLazer()
  977. {
  978.    var _loc1_ = undefined;
  979.    if(horIndicator == 1)
  980.    {
  981.       _loc1_ = "lazer2";
  982.       horIndicator += 1;
  983.    }
  984.    else if(horIndicator == 2)
  985.    {
  986.       _loc1_ = "lazer4";
  987.       horIndicator += 1;
  988.    }
  989.    else if(horIndicator == 3)
  990.    {
  991.       _loc1_ = "lazer6";
  992.       horIndicator += 1;
  993.    }
  994.    else if(horIndicator == 4)
  995.    {
  996.       _loc1_ = "lazer8";
  997.       horIndicator += 1;
  998.    }
  999.    else if(horIndicator == 5)
  1000.    {
  1001.       _loc1_ = "lazer10";
  1002.       horIndicator += 1;
  1003.    }
  1004.    else if(horIndicator == 6)
  1005.    {
  1006.       _loc1_ = "lazer12";
  1007.       horIndicator += 1;
  1008.    }
  1009.    else if(horIndicator == 7)
  1010.    {
  1011.       _loc1_ = "lazer14";
  1012.       horIndicator += 1;
  1013.    }
  1014.    else if(horIndicator == 8)
  1015.    {
  1016.       _loc1_ = "lazer16";
  1017.       horIndicator += 1;
  1018.    }
  1019.    else if(horIndicator == 9)
  1020.    {
  1021.       _loc1_ = "lazer18";
  1022.       horIndicator += 1;
  1023.    }
  1024.    else if(horIndicator == 10)
  1025.    {
  1026.       _loc1_ = "lazer20";
  1027.       horIndicator = 1;
  1028.    }
  1029.    return _loc1_;
  1030. }
  1031. function getNextVerticalLazer()
  1032. {
  1033.    var _loc1_ = undefined;
  1034.    if(verIndicator == 1)
  1035.    {
  1036.       _loc1_ = "lazer";
  1037.       verIndicator += 1;
  1038.    }
  1039.    else if(verIndicator == 2)
  1040.    {
  1041.       _loc1_ = "lazer3";
  1042.       verIndicator += 1;
  1043.    }
  1044.    else if(verIndicator == 3)
  1045.    {
  1046.       _loc1_ = "lazer5";
  1047.       verIndicator += 1;
  1048.    }
  1049.    else if(verIndicator == 4)
  1050.    {
  1051.       _loc1_ = "lazer7";
  1052.       verIndicator += 1;
  1053.    }
  1054.    else if(verIndicator == 5)
  1055.    {
  1056.       _loc1_ = "lazer9";
  1057.       verIndicator += 1;
  1058.    }
  1059.    else if(verIndicator == 6)
  1060.    {
  1061.       _loc1_ = "lazer11";
  1062.       verIndicator += 1;
  1063.    }
  1064.    else if(verIndicator == 7)
  1065.    {
  1066.       _loc1_ = "lazer13";
  1067.       verIndicator += 1;
  1068.    }
  1069.    else if(verIndicator == 8)
  1070.    {
  1071.       _loc1_ = "lazer15";
  1072.       verIndicator += 1;
  1073.    }
  1074.    else if(verIndicator == 9)
  1075.    {
  1076.       _loc1_ = "lazer17";
  1077.       verIndicator += 1;
  1078.    }
  1079.    else if(verIndicator == 10)
  1080.    {
  1081.       _loc1_ = "lazer19";
  1082.       verIndicator = 1;
  1083.    }
  1084.    return _loc1_;
  1085. }
  1086. function createNewEnemy()
  1087. {
  1088.    var thisRef2 = this;
  1089.    var _loc3_ = "enemyFighter_" + numEnemyDepth;
  1090.    var _loc4_ = 1 + Math.floor(Math.random() * 4);
  1091.    var _loc6_ = 0 + Math.floor(Math.random() * _root.arena._width);
  1092.    var _loc5_ = 0 + Math.floor(Math.random() * _root.arena._height);
  1093.    _root.enemyLayer.attachMovie("enemy_1",_loc3_,numEnemyDepth);
  1094.    if(_loc4_ == 1)
  1095.    {
  1096.       _root.enemyLayer[_loc3_]._x = 0;
  1097.       _root.enemyLayer[_loc3_]._y = _loc5_;
  1098.    }
  1099.    else if(_loc4_ == 2)
  1100.    {
  1101.       _root.enemyLayer[_loc3_]._x = _root.arena._width;
  1102.       _root.enemyLayer[_loc3_]._y = _loc5_;
  1103.    }
  1104.    else if(_loc4_ == 3)
  1105.    {
  1106.       _root.enemyLayer[_loc3_]._x = _loc6_;
  1107.       _root.enemyLayer[_loc3_]._y = 0;
  1108.    }
  1109.    else if(_loc4_ == 4)
  1110.    {
  1111.       _root.enemyLayer[_loc3_]._x = _loc6_;
  1112.       _root.enemyLayer[_loc3_]._y = _root.arena._height;
  1113.    }
  1114.    numEnemyDepth++;
  1115.    arrEnemy.push(_loc3_);
  1116.    _root[_loc3_].removeCallback = function(myName)
  1117.    {
  1118.       thisRef2.removeEnemy(myName);
  1119.    };
  1120. }
  1121. function ReportEnemyDeath(strName)
  1122. {
  1123.    var _loc1_ = 0;
  1124.    while(_loc1_ < arrEnemy.length)
  1125.    {
  1126.       if(arrEnemy[_loc1_] == strName)
  1127.       {
  1128.          arrEnemy.splice(_loc1_,1);
  1129.          break;
  1130.       }
  1131.       _loc1_ = _loc1_ + 1;
  1132.    }
  1133. }
  1134. function enemyRandomness()
  1135. {
  1136.    if(enemyIncrem >= enemySetBase)
  1137.    {
  1138.       if(enemyAppearSec == 1)
  1139.       {
  1140.          createNewEnemy();
  1141.          enemyIncrem = 0;
  1142.       }
  1143.       else if(enemyAppearSec == 2)
  1144.       {
  1145.          var _loc1_ = 1 + Math.floor(Math.random() * 5);
  1146.          if(_loc1_ == 1)
  1147.          {
  1148.             createNewEnemy();
  1149.          }
  1150.          else if(_loc1_ == 2)
  1151.          {
  1152.             createNewEnemy();
  1153.          }
  1154.          else if(_loc1_ == 3)
  1155.          {
  1156.             createNewEnemy();
  1157.          }
  1158.          else if(_loc1_ == 4)
  1159.          {
  1160.             createNewEnemy();
  1161.          }
  1162.          else if(_loc1_ == 5)
  1163.          {
  1164.             createNewEnemy();
  1165.             createNewEnemy();
  1166.          }
  1167.          enemyIncrem = 0;
  1168.       }
  1169.       else if(createNewEnemy == 3)
  1170.       {
  1171.          _loc1_ = 1 + Math.floor(Math.random() * 4);
  1172.          if(_loc1_ == 1)
  1173.          {
  1174.             createNewEnemy();
  1175.          }
  1176.          else if(_loc1_ == 2)
  1177.          {
  1178.             createNewEnemy();
  1179.          }
  1180.          else if(_loc1_ == 3)
  1181.          {
  1182.             createNewEnemy();
  1183.          }
  1184.          else if(_loc1_ == 4)
  1185.          {
  1186.             createNewEnemy();
  1187.             createNewEnemy();
  1188.          }
  1189.          enemyIncrem = 0;
  1190.       }
  1191.    }
  1192.    enemyIncrem++;
  1193. }
  1194. function generatePowerUp()
  1195. {
  1196.    if(!_global.alreadyOut)
  1197.    {
  1198.       if(counter == 0)
  1199.       {
  1200.          var startX = 0 + Math.floor(Math.random() * _root.arena._width / 2);
  1201.          var startY = 0 + Math.floor(Math.random() * _root.arena._height / 2);
  1202.          var tempName = "PowerUp_" + powerDepth;
  1203.          powerUpType = 1 + Math.floor(Math.random() * 3);
  1204.          if(powerUpType == 1)
  1205.          {
  1206.             cleanupBullets();
  1207.             _root.enemyLayer.attachMovie("power_up_killall",tempName,powerDepth);
  1208.          }
  1209.          else if(powerUpType == 2)
  1210.          {
  1211.             if(_global.shieldOn)
  1212.             {
  1213.                powerUpType = 3;
  1214.                _root.enemyLayer.attachMovie("plus_one_life",tempName,powerDepth);
  1215.             }
  1216.             else
  1217.             {
  1218.                _root.enemyLayer.attachMovie("power_up_shield",tempName,powerDepth);
  1219.             }
  1220.          }
  1221.          else if(powerUpType == 3)
  1222.          {
  1223.             _root.enemyLayer.attachMovie("plus_one_life",tempName,powerDepth);
  1224.          }
  1225.          else if(powerUpType == 4)
  1226.          {
  1227.             if(parallel)
  1228.             {
  1229.                powerUpType = 5;
  1230.                _root.enemyLayer.attachMovie("spread_S",tempName,powerDepth);
  1231.             }
  1232.             else
  1233.             {
  1234.                _root.enemyLayer.attachMovie("parallel_P",tempName,powerDepth);
  1235.             }
  1236.          }
  1237.          else if(powerUpType == 5)
  1238.          {
  1239.             if(spread)
  1240.             {
  1241.                powerUpType = 4;
  1242.                _root.enemyLayer.attachMovie("parallel_P",tempName,powerDepth);
  1243.             }
  1244.             else
  1245.             {
  1246.                _root.enemyLayer.attachMovie("spread_S",tempName,powerDepth);
  1247.             }
  1248.          }
  1249.          _global.alreadyOut = true;
  1250.          _root.enemyLayer[tempName]._x = startX;
  1251.          _root.enemyLayer[tempName]._y = startY;
  1252.          _root.powerRef = eval("_root.enemyLayer." + tempName);
  1253.          counter = Math.round(Math.random() * (maxCounter - minCounter)) + minCounter;
  1254.          powerDepth++;
  1255.          if(powerDepth >= 500000)
  1256.          {
  1257.             powerDepth = 400000;
  1258.          }
  1259.       }
  1260.       else
  1261.       {
  1262.          counter--;
  1263.       }
  1264.    }
  1265. }
  1266. function killAllAnimations(xVal, yVal)
  1267. {
  1268.    var _loc2_ = "death_" + numEffectDepth;
  1269.    _root.enemyLayer.attachMovie("enemy_1_death",_loc2_,numEffectDepth);
  1270.    _root.enemyLayer[_loc2_]._x = xVal;
  1271.    _root.enemyLayer[_loc2_]._y = yVal;
  1272.    numEffectDepth++;
  1273.    if(numEffectDepth >= 600000)
  1274.    {
  1275.       numEffectDepth = 500000;
  1276.    }
  1277. }
  1278. function DestroyAllEnemies()
  1279. {
  1280.    var i = 0;
  1281.    while(i < arrEnemy.length)
  1282.    {
  1283.       var clipRef = eval("_root.enemyLayer." + arrEnemy[i]);
  1284.       clipRef.dieNow();
  1285.       i++;
  1286.    }
  1287.    delete arrEnemy;
  1288.    arrEnemy = new Array();
  1289. }
  1290. function powerUpHitTest()
  1291. {
  1292.    if(_global.alreadyOut)
  1293.    {
  1294.       if(_root.powerRef.hitTest(_root.pointer))
  1295.       {
  1296.          _root.powerRef.removeMovieClip();
  1297.          _global.alreadyOut = false;
  1298.          if(powerUpType == 1)
  1299.          {
  1300.             DestroyAllEnemies();
  1301.             _root.powerUpMc.gotoAndPlay("flash3");
  1302.             _global.SoundManager.PlaySound("bloop");
  1303.          }
  1304.          else if(powerUpType == 2)
  1305.          {
  1306.             if(!_global.shieldOn)
  1307.             {
  1308.                _root.pointer.attachMovie("avatar_shield","avatarShield",powerDepth);
  1309.                _root.powerUpMc.gotoAndPlay("flash2");
  1310.                _global.SoundManager.PlaySound("bloop");
  1311.             }
  1312.             else
  1313.             {
  1314.                playerLives++;
  1315.                _root.lives.lives_txt.text = "Lives: " + playerLives;
  1316.                _root.lives.attachMovie("plus1Life","quick_white_flash",powerDepth);
  1317.                _root.powerUpMc.gotoAndPlay("flash1");
  1318.                _global.SoundManager.PlaySound("bloop");
  1319.             }
  1320.          }
  1321.          else if(powerUpType == 3)
  1322.          {
  1323.             playerLives++;
  1324.             _root.lives.lives_txt.text = "Lives: " + playerLives;
  1325.             _root.lives.attachMovie("plus1Life","quick_white_flash",powerDepth);
  1326.             _root.powerUpMc.gotoAndPlay("flash1");
  1327.             _global.SoundManager.PlaySound("bloop");
  1328.          }
  1329.          else if(powerUpType == 4)
  1330.          {
  1331.             _root.pointer.gun2.gotoAndStop("on");
  1332.             _root.pointer.gun3.gotoAndStop("on");
  1333.             gun2 = true;
  1334.             gun3 = true;
  1335.             spread = false;
  1336.             parallel = true;
  1337.             _root.powerUpMc.gotoAndPlay("flash4");
  1338.             _global.SoundManager.PlaySound("bloop");
  1339.          }
  1340.          else if(powerUpType == 5)
  1341.          {
  1342.             _root.pointer.gun2.gotoAndStop("on");
  1343.             _root.pointer.gun3.gotoAndStop("on");
  1344.             gun2 = true;
  1345.             gun3 = true;
  1346.             parallel = false;
  1347.             spread = true;
  1348.             _root.powerUpMc.gotoAndPlay("flash5");
  1349.             _global.SoundManager.PlaySound("bloop");
  1350.          }
  1351.          powerDepth++;
  1352.          if(powerDepth >= 500000)
  1353.          {
  1354.             powerDepth = 400000;
  1355.          }
  1356.       }
  1357.    }
  1358. }
  1359. function cacheMovieClips()
  1360. {
  1361.    _root.crosshair.cacheAsBitmap = true;
  1362.    _root.lazer.cacheAsBitmap = true;
  1363.    _root.lazer2.cacheAsBitmap = true;
  1364.    _root.lazer3.cacheAsBitmap = true;
  1365.    _root.lazer4.cacheAsBitmap = true;
  1366.    _root.lazer5.cacheAsBitmap = true;
  1367.    _root.lazer6.cacheAsBitmap = true;
  1368.    _root.lazer7.cacheAsBitmap = true;
  1369.    _root.lazer8.cacheAsBitmap = true;
  1370.    _root.lazer9.cacheAsBitmap = true;
  1371.    _root.lazer10.cacheAsBitmap = true;
  1372.    _root.lazer11.cacheAsBitmap = true;
  1373.    _root.lazer12.cacheAsBitmap = true;
  1374.    _root.lazer13.cacheAsBitmap = true;
  1375.    _root.lazer14.cacheAsBitmap = true;
  1376.    _root.lazer15.cacheAsBitmap = true;
  1377.    _root.lazer16.cacheAsBitmap = true;
  1378.    _root.lazer17.cacheAsBitmap = true;
  1379.    _root.lazer18.cacheAsBitmap = true;
  1380.    _root.lazer19.cacheAsBitmap = true;
  1381.    _root.lazer20.cacheAsBitmap = true;
  1382.    _root.reset.cacheAsBitmap = true;
  1383.    _root.mainMenu.cacheAsBitmap = true;
  1384. }
  1385. function moveIt(mClip, valX, valY, dur)
  1386. {
  1387.    nextTween++;
  1388.    if(nextTween == 1)
  1389.    {
  1390.       moveMe1(mClip,valX,valY,dur);
  1391.    }
  1392.    else if(nextTween == 2)
  1393.    {
  1394.       moveMe2(mClip,valX,valY,dur);
  1395.    }
  1396.    else if(nextTween == 3)
  1397.    {
  1398.       moveMe3(mClip,valX,valY,dur);
  1399.    }
  1400.    else if(nextTween == 4)
  1401.    {
  1402.       moveMe4(mClip,valX,valY,dur);
  1403.    }
  1404.    else if(nextTween == 5)
  1405.    {
  1406.       moveMe5(mClip,valX,valY,dur);
  1407.    }
  1408.    else if(nextTween == 6)
  1409.    {
  1410.       moveMe6(mClip,valX,valY,dur);
  1411.    }
  1412.    else if(nextTween == 7)
  1413.    {
  1414.       moveMe7(mClip,valX,valY,dur);
  1415.    }
  1416.    else if(nextTween == 8)
  1417.    {
  1418.       moveMe8(mClip,valX,valY,dur);
  1419.    }
  1420.    else if(nextTween == 9)
  1421.    {
  1422.       moveMe9(mClip,valX,valY,dur);
  1423.    }
  1424.    else if(nextTween == 10)
  1425.    {
  1426.       moveMe10(mClip,valX,valY,dur);
  1427.    }
  1428.    else if(nextTween == 11)
  1429.    {
  1430.       moveMe11(mClip,valX,valY,dur);
  1431.    }
  1432.    else if(nextTween == 12)
  1433.    {
  1434.       moveMe12(mClip,valX,valY,dur);
  1435.    }
  1436.    else if(nextTween == 13)
  1437.    {
  1438.       moveMe13(mClip,valX,valY,dur);
  1439.    }
  1440.    else if(nextTween == 14)
  1441.    {
  1442.       moveMe14(mClip,valX,valY,dur);
  1443.    }
  1444.    else if(nextTween == 15)
  1445.    {
  1446.       moveMe15(mClip,valX,valY,dur);
  1447.    }
  1448.    else if(nextTween == 16)
  1449.    {
  1450.       moveMe16(mClip,valX,valY,dur);
  1451.    }
  1452.    else if(nextTween == 17)
  1453.    {
  1454.       moveMe17(mClip,valX,valY,dur);
  1455.    }
  1456.    else if(nextTween == 18)
  1457.    {
  1458.       moveMe18(mClip,valX,valY,dur);
  1459.    }
  1460.    else if(nextTween == 19)
  1461.    {
  1462.       moveMe19(mClip,valX,valY,dur);
  1463.    }
  1464.    else if(nextTween == 20)
  1465.    {
  1466.       moveMe20(mClip,valX,valY,dur);
  1467.    }
  1468.    else if(nextTween == 21)
  1469.    {
  1470.       moveMe21(mClip,valX,valY,dur);
  1471.    }
  1472.    else if(nextTween == 22)
  1473.    {
  1474.       moveMe22(mClip,valX,valY,dur);
  1475.    }
  1476.    else if(nextTween == 23)
  1477.    {
  1478.       moveMe23(mClip,valX,valY,dur);
  1479.    }
  1480.    else if(nextTween == 24)
  1481.    {
  1482.       moveMe24(mClip,valX,valY,dur);
  1483.    }
  1484.    else if(nextTween == 25)
  1485.    {
  1486.       moveMe25(mClip,valX,valY,dur);
  1487.    }
  1488.    else if(nextTween == 26)
  1489.    {
  1490.       moveMe26(mClip,valX,valY,dur);
  1491.    }
  1492.    else if(nextTween == 27)
  1493.    {
  1494.       moveMe27(mClip,valX,valY,dur);
  1495.    }
  1496.    else if(nextTween == 28)
  1497.    {
  1498.       moveMe28(mClip,valX,valY,dur);
  1499.    }
  1500.    else if(nextTween == 29)
  1501.    {
  1502.       moveMe29(mClip,valX,valY,dur);
  1503.    }
  1504.    else if(nextTween == 30)
  1505.    {
  1506.       moveMe30(mClip,valX,valY,dur);
  1507.    }
  1508.    else if(nextTween == 31)
  1509.    {
  1510.       moveMe1(mClip,valX,valY,dur);
  1511.       nextTween = 1;
  1512.    }
  1513. }
  1514. function moveMe1(mc, xVal, yVal, duration)
  1515. {
  1516.    var _loc3_ = mc._x;
  1517.    var _loc4_ = mc._y;
  1518.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1519.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1520.    myTweening.FPS = _global.FPSforTweenClass;
  1521.    myTweening.onMotionFinished = function()
  1522.    {
  1523.    };
  1524. }
  1525. function moveMe2(mc, xVal, yVal, duration)
  1526. {
  1527.    var _loc3_ = mc._x;
  1528.    var _loc4_ = mc._y;
  1529.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1530.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1531.    myTweening.FPS = _global.FPSforTweenClass;
  1532.    myTweening.onMotionFinished = function()
  1533.    {
  1534.    };
  1535. }
  1536. function moveMe3(mc, xVal, yVal, duration)
  1537. {
  1538.    var _loc3_ = mc._x;
  1539.    var _loc4_ = mc._y;
  1540.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1541.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1542.    myTweening.FPS = _global.FPSforTweenClass;
  1543.    myTweening.onMotionFinished = function()
  1544.    {
  1545.    };
  1546. }
  1547. function moveMe4(mc, xVal, yVal, duration)
  1548. {
  1549.    var _loc3_ = mc._x;
  1550.    var _loc4_ = mc._y;
  1551.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1552.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1553.    myTweening.FPS = _global.FPSforTweenClass;
  1554.    myTweening.onMotionFinished = function()
  1555.    {
  1556.    };
  1557. }
  1558. function moveMe5(mc, xVal, yVal, duration)
  1559. {
  1560.    var _loc3_ = mc._x;
  1561.    var _loc4_ = mc._y;
  1562.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1563.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1564.    myTweening.FPS = _global.FPSforTweenClass;
  1565.    myTweening.onMotionFinished = function()
  1566.    {
  1567.    };
  1568. }
  1569. function moveMe6(mc, xVal, yVal, duration)
  1570. {
  1571.    var _loc3_ = mc._x;
  1572.    var _loc4_ = mc._y;
  1573.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1574.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1575.    myTweening.FPS = _global.FPSforTweenClass;
  1576.    myTweening.onMotionFinished = function()
  1577.    {
  1578.    };
  1579. }
  1580. function moveMe7(mc, xVal, yVal, duration)
  1581. {
  1582.    var _loc3_ = mc._x;
  1583.    var _loc4_ = mc._y;
  1584.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1585.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1586.    myTweening.FPS = _global.FPSforTweenClass;
  1587.    myTweening.onMotionFinished = function()
  1588.    {
  1589.    };
  1590. }
  1591. function moveMe8(mc, xVal, yVal, duration)
  1592. {
  1593.    var _loc3_ = mc._x;
  1594.    var _loc4_ = mc._y;
  1595.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1596.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1597.    myTweening.FPS = _global.FPSforTweenClass;
  1598.    myTweening.onMotionFinished = function()
  1599.    {
  1600.    };
  1601. }
  1602. function moveMe9(mc, xVal, yVal, duration)
  1603. {
  1604.    var _loc3_ = mc._x;
  1605.    var _loc4_ = mc._y;
  1606.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1607.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1608.    myTweening.FPS = _global.FPSforTweenClass;
  1609.    myTweening.onMotionFinished = function()
  1610.    {
  1611.    };
  1612. }
  1613. function moveMe10(mc, xVal, yVal, duration)
  1614. {
  1615.    var _loc3_ = mc._x;
  1616.    var _loc4_ = mc._y;
  1617.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1618.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1619.    myTweening.FPS = _global.FPSforTweenClass;
  1620.    myTweening.onMotionFinished = function()
  1621.    {
  1622.    };
  1623. }
  1624. function moveMe11(mc, xVal, yVal, duration)
  1625. {
  1626.    var _loc3_ = mc._x;
  1627.    var _loc4_ = mc._y;
  1628.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1629.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1630.    myTweening.FPS = _global.FPSforTweenClass;
  1631.    myTweening.onMotionFinished = function()
  1632.    {
  1633.    };
  1634. }
  1635. function moveMe12(mc, xVal, yVal, duration)
  1636. {
  1637.    var _loc3_ = mc._x;
  1638.    var _loc4_ = mc._y;
  1639.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1640.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1641.    myTweening.FPS = _global.FPSforTweenClass;
  1642.    myTweening.onMotionFinished = function()
  1643.    {
  1644.    };
  1645. }
  1646. function moveMe13(mc, xVal, yVal, duration)
  1647. {
  1648.    var _loc3_ = mc._x;
  1649.    var _loc4_ = mc._y;
  1650.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1651.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1652.    myTweening.FPS = _global.FPSforTweenClass;
  1653.    myTweening.onMotionFinished = function()
  1654.    {
  1655.    };
  1656. }
  1657. function moveMe14(mc, xVal, yVal, duration)
  1658. {
  1659.    var _loc3_ = mc._x;
  1660.    var _loc4_ = mc._y;
  1661.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1662.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1663.    myTweening.FPS = _global.FPSforTweenClass;
  1664.    myTweening.onMotionFinished = function()
  1665.    {
  1666.    };
  1667. }
  1668. function moveMe15(mc, xVal, yVal, duration)
  1669. {
  1670.    var _loc3_ = mc._x;
  1671.    var _loc4_ = mc._y;
  1672.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1673.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1674.    myTweening.FPS = _global.FPSforTweenClass;
  1675.    myTweening.onMotionFinished = function()
  1676.    {
  1677.    };
  1678. }
  1679. function moveMe16(mc, xVal, yVal, duration)
  1680. {
  1681.    var _loc3_ = mc._x;
  1682.    var _loc4_ = mc._y;
  1683.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1684.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1685.    myTweening.FPS = _global.FPSforTweenClass;
  1686.    myTweening.onMotionFinished = function()
  1687.    {
  1688.    };
  1689. }
  1690. function moveMe17(mc, xVal, yVal, duration)
  1691. {
  1692.    var _loc3_ = mc._x;
  1693.    var _loc4_ = mc._y;
  1694.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1695.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1696.    myTweening.FPS = _global.FPSforTweenClass;
  1697.    myTweening.onMotionFinished = function()
  1698.    {
  1699.    };
  1700. }
  1701. function moveMe18(mc, xVal, yVal, duration)
  1702. {
  1703.    var _loc3_ = mc._x;
  1704.    var _loc4_ = mc._y;
  1705.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1706.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1707.    myTweening.FPS = _global.FPSforTweenClass;
  1708.    myTweening.onMotionFinished = function()
  1709.    {
  1710.    };
  1711. }
  1712. function moveMe19(mc, xVal, yVal, duration)
  1713. {
  1714.    var _loc3_ = mc._x;
  1715.    var _loc4_ = mc._y;
  1716.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1717.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1718.    myTweening.FPS = _global.FPSforTweenClass;
  1719.    myTweening.onMotionFinished = function()
  1720.    {
  1721.    };
  1722. }
  1723. function moveMe20(mc, xVal, yVal, duration)
  1724. {
  1725.    var _loc3_ = mc._x;
  1726.    var _loc4_ = mc._y;
  1727.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1728.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1729.    myTweening.FPS = _global.FPSforTweenClass;
  1730.    myTweening.onMotionFinished = function()
  1731.    {
  1732.    };
  1733. }
  1734. function moveMe21(mc, xVal, yVal, duration)
  1735. {
  1736.    var _loc3_ = mc._x;
  1737.    var _loc4_ = mc._y;
  1738.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1739.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1740.    myTweening.FPS = _global.FPSforTweenClass;
  1741.    myTweening.onMotionFinished = function()
  1742.    {
  1743.    };
  1744. }
  1745. function moveMe22(mc, xVal, yVal, duration)
  1746. {
  1747.    var _loc3_ = mc._x;
  1748.    var _loc4_ = mc._y;
  1749.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1750.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1751.    myTweening.FPS = _global.FPSforTweenClass;
  1752.    myTweening.onMotionFinished = function()
  1753.    {
  1754.    };
  1755. }
  1756. function moveMe23(mc, xVal, yVal, duration)
  1757. {
  1758.    var _loc3_ = mc._x;
  1759.    var _loc4_ = mc._y;
  1760.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1761.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1762.    myTweening.FPS = _global.FPSforTweenClass;
  1763.    myTweening.onMotionFinished = function()
  1764.    {
  1765.    };
  1766. }
  1767. function moveMe24(mc, xVal, yVal, duration)
  1768. {
  1769.    var _loc3_ = mc._x;
  1770.    var _loc4_ = mc._y;
  1771.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1772.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1773.    myTweening.FPS = _global.FPSforTweenClass;
  1774.    myTweening.onMotionFinished = function()
  1775.    {
  1776.    };
  1777. }
  1778. function moveMe25(mc, xVal, yVal, duration)
  1779. {
  1780.    var _loc3_ = mc._x;
  1781.    var _loc4_ = mc._y;
  1782.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1783.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1784.    myTweening.FPS = _global.FPSforTweenClass;
  1785.    myTweening.onMotionFinished = function()
  1786.    {
  1787.    };
  1788. }
  1789. function moveMe26(mc, xVal, yVal, duration)
  1790. {
  1791.    var _loc3_ = mc._x;
  1792.    var _loc4_ = mc._y;
  1793.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1794.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1795.    myTweening.FPS = _global.FPSforTweenClass;
  1796.    myTweening.onMotionFinished = function()
  1797.    {
  1798.    };
  1799. }
  1800. function moveMe27(mc, xVal, yVal, duration)
  1801. {
  1802.    var _loc3_ = mc._x;
  1803.    var _loc4_ = mc._y;
  1804.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1805.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1806.    myTweening.FPS = _global.FPSforTweenClass;
  1807.    myTweening.onMotionFinished = function()
  1808.    {
  1809.    };
  1810. }
  1811. function moveMe28(mc, xVal, yVal, duration)
  1812. {
  1813.    var _loc3_ = mc._x;
  1814.    var _loc4_ = mc._y;
  1815.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1816.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1817.    myTweening.FPS = _global.FPSforTweenClass;
  1818.    myTweening.onMotionFinished = function()
  1819.    {
  1820.    };
  1821. }
  1822. function moveMe29(mc, xVal, yVal, duration)
  1823. {
  1824.    var _loc3_ = mc._x;
  1825.    var _loc4_ = mc._y;
  1826.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1827.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1828.    myTweening.FPS = _global.FPSforTweenClass;
  1829.    myTweening.onMotionFinished = function()
  1830.    {
  1831.    };
  1832. }
  1833. function moveMe30(mc, xVal, yVal, duration)
  1834. {
  1835.    var _loc3_ = mc._x;
  1836.    var _loc4_ = mc._y;
  1837.    myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.None.easeNone,_loc3_,xVal,duration,true);
  1838.    myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.None.easeNone,_loc4_,yVal,duration,true);
  1839.    myTweening.FPS = _global.FPSforTweenClass;
  1840.    myTweening.onMotionFinished = function()
  1841.    {
  1842.    };
  1843. }
  1844. stop();
  1845. var vecMomentum = new Vector();
  1846. var maxSpeed;
  1847. var friction;
  1848. var numSensitivity;
  1849. var avatarLife;
  1850. var secondBulletCounter;
  1851. var numBulletDepth;
  1852. var numBulletDepth2;
  1853. var numEffectDepth;
  1854. var arrBullets;
  1855. var arrEnemy;
  1856. var isTouching;
  1857. var isHeld;
  1858. var myTime;
  1859. var startTime;
  1860. var stageState;
  1861. var lasersLeftPosX;
  1862. var lasersLeftPosY;
  1863. var lasersRightPosX;
  1864. var lasersRightPosY;
  1865. var prevScore;
  1866. var lasersTopPosX;
  1867. var lasersTopPosY;
  1868. var lasersBottomPosX;
  1869. var lasersBottomPosY;
  1870. var verIndicator;
  1871. var horIndicator;
  1872. var newSecHitTest;
  1873. var secIncrem;
  1874. var enemySetBase;
  1875. var enemyIncrem;
  1876. var numEnemyDepth;
  1877. var startUpPeriod;
  1878. var dyingProcess;
  1879. var playerLives;
  1880. var powerDepth;
  1881. var counter;
  1882. var minCounter;
  1883. var maxCounter;
  1884. var powerRef;
  1885. var powerUpType;
  1886. var instDone;
  1887. var nextTween;
  1888. var killAll;
  1889. var enemyAppearSec;
  1890. var parallel;
  1891. var spread;
  1892. var gun2;
  1893. var gun3;
  1894. _root.navi_game.mainMenu.onPress = function()
  1895. {
  1896.    cleanupBullets();
  1897.    _root.gotoAndPlay("main_menu");
  1898. };
  1899. _root.navi_game.mainMenu.onRollOver = function()
  1900. {
  1901.    moveNavi_menu(navi_pointer);
  1902. };
  1903. _root.navi_game.mainMenu.onRollOut = function()
  1904. {
  1905.    moveNavi_back(navi_pointer);
  1906. };
  1907. _root.navi_game.high_scores.onPress = function()
  1908. {
  1909.    _global.dataVector.Set(_global.userScore);
  1910.    _root.gotoAndPlay("game_over");
  1911.    getUrl("http://rankz.armorbot.com/blu3p/", "_blank");
  1912. };
  1913. _root.navi_game.high_scores.onRollOver = function()
  1914. {
  1915.    moveNavi_score(navi_pointer);
  1916. };
  1917. _root.navi_game.high_scores.onRollOut = function()
  1918. {
  1919.    moveNavi_back(navi_pointer);
  1920. };
  1921. _root.arena.onLoad = function()
  1922. {
  1923.    this.gotoAndPlay("fadeIn");
  1924. };
  1925. _root.small_title.onLoad = function()
  1926. {
  1927.    this.gotoAndPlay("fadeIn");
  1928. };
  1929. _root.pointer.onLoad = function()
  1930. {
  1931.    this.gotoAndPlay("fadeIn");
  1932. };
  1933. _root.arena_mask.onLoad = function()
  1934. {
  1935.    this._x = _root.arena._x;
  1936.    this._y = _root.arena._y;
  1937. };
  1938.